package com.yz.model.entity.promotion;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.Data;

import java.util.Date;

/**
 * Created With IntelliJ IDEA.
 * Descriptions:
 * <p>
 * User:Mr.Du
 * Date:2024/3/25
 * Time:16:19
 */
@Data
@Builder
@TableName("promotion_code")
public class PromotionCode {

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    private String code;

    private String token;

    private Float discountRate;

    // 0:未使用 1:已使用 2:已过期
    private Integer status;

    // 0:通用 1:指定用户
    private Integer type;

    private Long uid;

    private Date createTime;

    private Date expireTime;

}
